<?php

class PurchaseDepositPageLink extends Extension {
	function getPurchaseDeposit(){
        $page = LoadDepositPage::get()->find('ClassName', 'LoadDepositPage');
        if($page) return $page;
    }
    
    function getPurchaseDepositLink() {
        $page = $this->getPurchaseDeposit();
        if($page) return $page->Link();
    }
	
    function getPurchaseDepositStatement(){
        $page = DepositStatementPage::get()->find('ClassName', 'DepositStatementPage');
        if($page) return $page;
    }
    
    function getPurchaseDepositStatementLink() {
        $page = $this->getPurchaseDepositStatement();
        if($page) return $page->Link();
    }
}
